#!/bin/usr/env bash
set -e
cd `dirname $0`
export PATH=/bin:$PATH
cat user_exclude_list.txt > exclude_list.txt
tmignore list|grep "/Users/$USER/Documents/Projects"|awk '{print $2" "$3}'|awk -F'' '{print $1}'|sed 's/\/$/\/*/'|sed "s/\/Users\/$USER\/Documents\/Projects\///g" >> exclude_list.txt
./rsync_tmbackup.sh --port 2222 --log-dir `pwd`/logs $HOME/Documents/Projects jahv@nas.cjahv.com:/data exclude_list.txt
